package xy.boot.condition.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;
import xy.boot.condition.entity.User;

@Configuration
public class UserConfig {

    @Bean
    @Conditional(ClassOnCondition.class)
    public User userBean(){
        return new User();
    }
}
